package com.server.questionbank.snframe.domain.Course;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author Tu
 * 课程实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("T_course")
public class TCourse {
    /** 课程ID */
    @TableId(type = IdType.AUTO)
    private Long courseId;
    /** 课程名 */
    private String courseName;
    /** 课程难度 */
    private Long courseDifficultyId;
    /** 课程封面 */
    private String courseCover;
    /** 课程封面路径 */
    private String coverPath;
    /** 课程简介 */
    private String courseDescription;
    /** 创建人 */
    private Long createBy;
    /** 创建时间 */
    private String createDate;
    /** 知识点 **/
    private TKnowledge tKnowledge;

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
        coverPath = "/course/overt/cover?courseId=" + courseId;
    }
}
